package com.ws.service;

import com.ws.entity.Goods;
import com.ws.util.Result;

public interface GoodsService {
    Result getGoodsListForPage(String name, Long goodsTypeId, Integer isOnSale, int pno, int psize);

    Result insertGoods(Goods goods);

    Result findGoodsById(Long id);

    Result updateGoods(Goods goods);

    Result deleteGoodsById(Long id);

    Result setGoodsOnsale(Long id, Integer isOnSale);

    Result getHotGoods();
}
